package com.example.cunion.service;

import com.example.cunion.entity.Chat;
import com.example.cunion.entity.Chat;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.cunion.entity.User;

import java.util.HashMap;
import java.util.List;

/**
* @author Aero
* @description 针对表【chat(ai聊天表)】的数据库操作Service
* @createDate 2023-10-15 15:04:04
*/
public interface ChatService extends IService<Chat> {

    Integer sendInfo(HashMap<String, Object> map);


    List<HashMap> searchInfoHistory(HashMap map);

    List<HashMap> searchMyMessage(String id, String senderId);

    List<User> searchPrivateChatObject(String id);

    //使用mp完成增删改查
    Integer addChat(Chat chat);
    Integer deletedChat(String chatId);
    Integer updateChat(Chat chat);
    List<Chat> searchChat(Integer start, Integer length);

}
